package user;


public class Student extends User {
    private String studentId; // 学号
    private int grade;        // 年级

    public Student() {
        super();
    }

    public Student(int id, String username, String password, String email, String studentId, int grade, String userType) {
        super(id, username, password, email, userType);
        this.studentId = studentId;
        this.grade = grade;
    }

    public Student(String username, String password, String studentId, int grade) {
        super(username, password);
        this.studentId = studentId;
        this.grade = grade;
    }

    // Getter 和 Setter
    public String getStudentId() {
        return studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    public int getGrade() {
        return grade;
    }

    public void setGrade(int grade) {
        this.grade = grade;
    }
}
